export default class Provider {
  static #providerMap = {}

  static set (name, provider) {
    this.#providerMap[name] = provider
  }

  static get (name) {
    return this.#providerMap[name]
  }

  static invoke (name, ...args) {
    return this.get(name)(...args)
  }
}